package shop.services.front.activityJoin.impl;

import org.springframework.stereotype.Service;
import shop.core.ServicesManager;
import shop.services.front.activityJoin.ActivityJoinService;
import shop.services.front.activityJoin.bean.ActivityJoin;
import shop.services.front.activityJoin.dao.ActivityJoinDao;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/5/3.
 */
@Service("activityJoinServiceFront")
public class ActivityJoinServiceImpl extends ServicesManager<ActivityJoin,ActivityJoinDao> implements ActivityJoinService {
    @Resource(name="activityJoinDaoFront")
    @Override
    public void setDao(ActivityJoinDao activityJoinDao){this.dao=activityJoinDao;}

    @Override
    public int selectAmount(ActivityJoin activityJoin) {
        return dao.selectAmount(activityJoin);
    }

    @Override
    public List<ActivityJoin> selectListByAccount(ActivityJoin activityJoin) {
        return dao.selectListByAccount(activityJoin);
    }
}
